/*
redux最核心的管理对象模块  store的内容一般较为固定
 */
import {createStore, applyMiddleware} from 'redux'
import thunk from 'redux-thunk'
//引入redux-devtools-extension 开发者工具 需要yarn add redux-devtools-extension
import {composeWithDevTools} from 'redux-devtools-extension'
import reducers from './reducers'

// 向外暴露store对象
export default createStore(reducers, composeWithDevTools(applyMiddleware(thunk)))
